package com.dg11185.nearshop.view;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;

/**
 * 重写Scrollview，使得ScollView的长度发生动态改变时不会自动滑动。
 * 
 * @author wanliang527
 * @date 2014-5-7
 */
public class InterceptAutoScrollView extends ScrollView {

    public InterceptAutoScrollView(Context context, AttributeSet attrs,
            int defStyle) {
        super(context, attrs, defStyle);
        // TODO Auto-generated constructor stub
    }

    public InterceptAutoScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
        // TODO Auto-generated constructor stub
    }

    public InterceptAutoScrollView(Context context) {
        super(context);
        // TODO Auto-generated constructor stub
    }

    @Override
    protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {
        return 0;
    }
      
    
}
